export default {
  data() {
    return {
      lastTime: 0
    };
  },
  methods: {
    timeOut() {
      const time = new Date().getTime();
      if (time - this.lastTime < 1000) {
        this.$message.warning('操作过于频繁～');
        return false;
      }
      this.lastTime = time;
      return true;
    }
  }
};
